package com.es.spring.aop.interceptor;

import com.es.spring.aop.common.Person;
import com.es.spring.aop.common.ZhangSan;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 二十
 * @since 2021/11/9 10:55 下午
 */
public class InterceptorMain {

    public static void main(String[] args) {
        List<MyInterceptor> interceptors = new ArrayList<>();
        interceptors.add(new One());
        interceptors.add(new Two());
        ((Person)new JdkDynamic(new ZhangSan(),interceptors).getProxy()).eat("可比克");
    }
}
